/* function foo(str,a){
    eval(str)
    console.log(a,b);
}
var b = 2
foo('var b = 3',1) */
var obj = {
    a: 1,
    b: 2,
    c: 3
}
/* obj.a = 2
obj.b = 3
obj.c = 4 */
with (obj) {
    a = 2
    b = 3
    c = 4

}
console.log(obj)  


/* var obj = {
    a: 1
}
with(obj){
    b=2
}
console.log(obj,b); */


/* function foo(obj) {
    with (obj) {
        a: 2
    }
} */